package com.xpq.petserver.exception;

/**
 * 业务错误信息
 */
public enum AppExceptionCodeMsg {
    NOT_LOGIN(10000, "您尚未登录，请登录！"),
    LOGIN_EXPIRATION(10001, "登录过期，请重新登录！"),
    AUTHENTICATION_FAILURE(10002, "身份验证失败，请重新登录!"),
    PHONE_NUMBER_FORMAT_ERROR(10003, "手机号码格式错误"),
    EMPTY_PASSWORD(10004, "密码不能为空"),
    ACCOUNT_REGISTERED(10005, "账号已经被注册！"),
    ACCOUNT_OR_PASSWORD_ERROR(10006, "账号或密码错误"),
    PASSWORD_ERROR(10007, "密码错误！"),
    EMPTY_AVATAR(10008, "头像不能为空"),
    CHANGE_AVATAR_ERROR(10009, "更换头像失败"),
    PHONE_REGISTERED(10010, "该手机号已经被注册！"),
    UPLOAD_PICTURE_ERROR(10011, "上传图片失败！"),
    NO_AUTH_DELETE_DATA(10012, "没有权限删除数据");



    private int code;
    private String msg;
    AppExceptionCodeMsg(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }
}
